package com.app.model.request;

import com.app.model.bean.Comment;
import com.app.model.bean.Order;

/**
 * 下单请求实体
 */

public class OrderReq extends ReqObj {

    // 订单信息
    private Order order;
    // 订单操作
    private int action;
    // 评价内容
    private Comment comment;


    // 创建订单
    public static final int ACTION_CREATE = 0;
    // 支付订单
    public static final int ACTION_PAY = 1;
    // 取消订单
    public static final int ACTION_CANCELL = 2;
    // 申请退款
    public static final int ACTION_REFUND = 3;
    // 取消退款
    public static final int ACTION_REFUND_CANCELL = 4;
    // 评分
    public static final int ACTION_SCORE = 5;
    // 验证消费码（仅限商家端使用）
    public static final int ACTION_CHECK = 6;
    // 确认接单（仅限商家端使用）
    public static final int ACTION_CONFIRM = 7;


    public OrderReq() {

    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public Comment getComment() {
        return comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }
}
